before shifting