made capacity parameter clearer