fixed error in printed results