fixed flashing stuff