structure recognition