some code and notes