added double conversion functions