fixed calling correct check function