cleaned up code for carousel and added accreditation to the user