decided on using capture array and ditch array
removed name param from frame function