pace conversion and helper functions