change code to detail