wrap OB in if statement