introduced variables to shorten lines
optimised imports