deleting depreciated function