delete comments. Remove print and replace them as logging