getting id from literals