fixed depreciated function name