added a comment for genPath