pre-generate attributes