refactoring for compute node