provided shape has precedence on detector definition