we should also subtract the value size in case put replaces an existing key..