added scoped get function