add smart comment and copy