changed mechanics of program, miss interpeted the question