Check the Non-ARC code and test on instruments

* Check the code
* test on instruments
* modified format of coding