hopefully fixed the flickering