trying to resolve duplicates in compiled functions