finished backup function. moving on to restore function