Replace array by read