more elaborate leveling