implementation of stack and adjustiments at line