removed error viewing, testing function