leveling feature detection