added preliminary pseudodata code