tried using regex
made the regex work