pin module works and refactored