add converting logic