changed type definition of level from char* to int