fix some errors
change setting of private pub