getting rid of code i don't understand