changed errors to return false