edited the getting function and rreading the level input from excel