amended names of vaiables to make more sense