#209 add variable to control table empty algorithm