creating referenceManager