checking in iterative remove version. but it seg faults at the moment.... need to debug!