refactored pins and map to dev