call connection in each method