putting head type into type params of pipeline