use subroutine, not halting when reach EE_SIZE limit