copied version of comprobo