explode constructor