updated stata do file