update not using array fix