ewrite the code to original