fix backup func