replaced padding string with local padding string, although not sure I want to keep this