removed SIZE_MAX reference
bug fix