add save method in ResTable