added conversion to double to specific values