reserve space for vector Y_temp