This would be better inside the if statement