code opt/formatting
concat before testing to make dyn vars available