add gradient sample