removed depreciated function