slighty better finding of the top-most element