updated queue save method