refactoring for better extending positioning.
guarantee overflow is not position static.
factor positioning code for clarity.