add extra variable
fix a few notes