- implemented attribute search
- fixed *while* errors
- fixed search errors