refactored level commands