whitespace fix. fixed last index bug