attempted fix for regex bug