use extract-parameters function