some more tentative code