Removed unuseful code in printing