#5 search for begin and end added