correct calculate of search fields