rewrite of function parameters with initializers and fixed capturing 'this'