add capacity functions