trying to make the variables assign correctly