deleted the "int main" loop