bug fix. removed test code.