implementing padding field