assigns ids to frets programmatically