modified to print more info