still using .match syntax line 333