repair 1d example