remove glitchy code