added pin stuff