renamed a function. fixed comments.