added devise and pins