fixed syntax error in pin model