deleted code.
refactored code.