deleted irrelevant lines of code