removed error test code