couirsing logic correction