updated method to make course wahtever the user searched for