adding the code which works in rhc PAAS