-Switched 'var' to 'let' where variable is set once