implemented top-level references for bottom level