remove sample/test code and dev function