simplified define_level: less code, less bugs