struct detection in method list