if statement around top right