fix some var declarations
update copyright year