removed unused function.
updated comments