debug third attempt