added padding to flash