changed stmt structure for comps