made save system work