revert unnecessary value to array