fix: subtract capacity of data