Edit middleware 1 and 2 and bibliography in main