fixed some typos
removed unneccessary code