save function should have the expected behavior now