fixing first post size error on splitting function