set condition of bg for liquid