handles < special case in search