fix comment preview
removing unused code