adding in modified code from original grc