add sample
fix undefined Index