block: style concerns. fix `type` variable.