reverting old method for maitaining legacy code using it