fixed wrong method to save