modify alpha diversity code