fixed else problem using precedence