make save method public