inconsistent code fixed