added check if table is full before context allocation