add comments
fix compiler issue