change output to returnType