added reg expressions