try save function for model