revert to use block since this did not solve the memory leak