update user, type, and doc