created conversion from symbols to IDs function