converted indentation to tabs
finished, but slightly glitchy