fixed bug where was not padding correctly, used -ge and -lt instead of <= and >