get the code properly