replaces float with double