move instantiateParams method