changing fig type