adding regex to handle comments