some old code notes