before coords change