automatically check position when open