implemented num6, slight aesthetic changes to num4