Updated mistaken const for var