output type lowercase check added