refactored commands array