update co-ordinate