changed val to delta :p