remove the word endpoint and update the variables to what they actually are