simplify stat checking