getting id properly