fixed pin initalizaion issue.