adjust coordinate value