method deprecated by API