applying only one shift operation after the case