changed backup routine