commit before shifting