deleted huge if statement group