corrected tab association: now 1 means pressed and 0 means not pressed