update method implemented (skel only)