make sure checks are still there.
fix variable name for debug.