minor changes to pin model and header partial