First pass to minimize initialize
compressed some code