added print and search