preparing code for lazyreferences;