cleared some code from repeats. Logic is untouched