hybrid fix branching on type of element