code improve

optimize code ,and improve readiability