everything works except last part of search by attribute