added more exception handling for conversion