Changed updatempr method