changed def/class to type