text and latex output added