handle padding issues.