new method getFavorites by ref added