made form generation a little more predictable