add function for interface & struct