comment the Code and rectification 

deleting the temporary level(levelend)