handle MS to seconds conversion