deal with nested pamams #54