removing global var on bind()