refactor to a trait the custom support method