renamed generateParameter to generateCommand