Reduce same codes