fix casting to double
realise stripping method