checking functions fix