added updating functions to student