allocate each row