try to fix flickering - I have no idea what I'm doing