removed size statement and removed testing code for agitation value