typo was fixed
native variables binding + refactoring