fixed bool parser error; added if