removed redundant code
move and delete use registers