added buffer padding class