fixing checking