create pin table and extend defined functions