change double to float - to avoid mixing them up in other classes