update code
fix error code