issues with printing table