replacing 'list' with 'head'