add sample attribute