fixed the id= numbering
minor changes to help compilation