some of the old code written by me