major simplification:convert to seconds