reverted the command -v condition