removing unnecessary ids