removed temp variable from level