updated version to 1.2.2 for refactor and bug fixed