trying to fix glitches