added capture template for C-syntax