fix conditions to be doubles