can you move this before the "if" statement