changed printName to printHeading