update position border