got rid of var declerations and replaced with commas between.