use SparseArray for pointer ids instead of HashMap