removed unused variables in Level