change val to double