started on lookup function