temp version should change append function from DGtal...