COD: test code and assure proper function