stong type updateatom[] approach