updated me1 code