fixed tabbing logic