extract method from view to collection