deprecating the old method