some improvement to the dirty element store