changed val output