cleaned up solution and footnote displays using ternary operator