command max and unmax added