building and energy code requirements