update code for android