added a capacity method