adding in carousel logic