fixing absoulte and relative search