making sure the from is not the same as the to