made capacity on resource buff functions member-wise const