updated to account for :error symbol from gem