update type and status