remove h from logic expressions