clean up some codes passing tryp object as parameter instead of multiple arugmenst removed level cli argument