removed reflection code which was commented out due to it not working right