finishing favorites function