adding regex checks