fix declaration regex