updated required parameters to include key