figured out how to send variables to iterator class