capture is not working