rewriting load and save