renaming a few variables around for simpleicity