renamed vars to be more descriptive