added cell size argument