put(update); some reactoring