use Boolean.parse instead of string comparison