restores everything to working order