execute correct command