replace method param type with block type