added r init; added footer