first program funct checked by Dr. N