fixed CHECK statments