added a table for the algorithm