why does this ignore the first character?