remove debug code and add comment