removed unwanted printfs after testing