incorporate a conditional into the original eskimo function.