change 'translate' so that last statement's type is used as block type