capture functionality fix