updated buffer size to fit in eeprom