complete check.h; bt some error remains