[PD] problems to write in an array