can you pls explain more detailed this calculating and applying position with result ?