You just did this up above in onCapture().  Why repeat yourself here?