search function added + draw points