added course finding routine

it was missing