some particle code -- don't know what's wrong