added cast to double