checking for leaks