fix to if statement to remove braces.