changed to work with NCGMP database