deleting unnecessary comments and console log