turn settings.padding into object