added the rest of the devise