updated regex
added response type of end