now wih added quad tree