use correct conversion functions