added save and clear