base casess corrected to be consistent with zybook