added transpose of variables