clean up the old code and complete upto level 4