to upper/lower now check if output is supposed to be NULL before comparing outputs