tried to fix random black lines flashing