add function like update student