check for structure type