origanize the code and correct a typo leo to lep