fix error in codes