tracking down bug