began working on saving and loading functions