update some functions for the next position by given information