logic in place for checking shifts