changed var to const but doesn't really matter