getting proper id field