added save details
used nathan's code for retrieve