removed depresecated function