added details to massive if block