efficiency improvement to favorite check