refactor code for getting holos data