added init check, removed testing "System.out's"