update else if statement