code with no warnings, completion pages and pdf