updating functions to use new style method