you sure this should go outside the `if` statement?