favorites function improved