chunk space algorithm updated