updated with pdf generator