changing which to type to check for commands