refactored indentation and unused variable
refactored remove enable and disable test mode