save method working