added \n for pattern matching