float changed to double