changed save method & implemented load method