move captures method out to separate file