added padding flag