removed code cruft
renamed boolval function to avoid naming conflict