get bodystructure function