add save prototype