give reponse according configured output