fixing array value targeting