Why -1 here? Is this correct?