update version and type component