add overflows and fix output pdf