trimmed code on research page