working on reducing commands