correctly enclose condition