refactored a variable name
added the level logger