modified fetchtype and test