created functions for finder patterns detection
merge