take position into account