fixed mis allignment at index