working erase func eeprom