modified code for openshift