translates boolean expression