changing base and dt to double to make it partially working in linux- it should be again tested in mac