refine the package according to go specification