updates old code