code tweaks, paper tweaks