updated ptypes example