now saves parameters properly