fix tie and code
fix code and tie