example4: adjust for go1.3