added ARR and corresponding code change