modified Diagnostico.groovy