removed deprectaed function