Before modifing x and y