reverted back to class variables declared at the top, but now used class methods to generate id