allow output size specification.