working on getting to work without an array