cleared up var declaration to make indentation super clear
simplified