check all function