refactoring get() for big data