slightly stupid tricks to remove flickering background