fix variable shadowing
set max version to 2.2.2