normalize the code