fixes unchecked variables