[WIP] lewismarshall code