add comments for private vars, remove unused