getting double to work