collection of some old codes