re-introduced referenceType to make code a bit more readable