optimizing dirtbag