fixed glitch, added some stuff