code finished and flashing state