completed uni algo