pad input if needed