moved the CANCELED space to be within the if statement