replace variable course with item in itemsController