initialize inside if statement