pass id to modify array