added bool_to_word helper