not definetely works with parallel lambda search ... but it can be further improved