generating work sizes more wisely