took references into account