class lead did not work well with carousel. adding ifdef