functions
in the system check