finding correct structure