padding delegate method added