uncomment getCustomTemplate logic