compute chunks