edited error in pins show and index