added TS::generate_access_pattern