taking out irrelevant code