saving and reading items in correct order