bug fixes, removed extra output