pseudo code and deletion of unnecessary comments