get rid of warning and add double conversion. This is a temporary change until the rework is complete