cleaned up pins_controller