before trying devise