var should be offsetDirection