by using magnetic attraction force