fixed a few ted things