build for reverse search