implemented the favorite