code improvements - playtable