change release function to erase
minor