friend gave old code, playing around with it