update microposts code