add updates and fix speed issues in deleting data points