moved function near the similar ones
table with results added