check detection before and after moving