extract params method