refactored testimonial code