remove a serious bug in subsample routine