clean lint warnings in sample. apply review comment.