enhanced unused variable checker