separate check function