moved load level into sperate function