removed Y_temp