added leveling