fixed bug: adding set_parameters to save method