Changing vars to let