deleted a variable and function that didn't need