added save and show args to function