applied hoisting to functions for performance
increment version number