made capacity variable