working on handling multiple points